import request from "@/utils/request.js";

const api_prefix = "/comment";

export function findGoodsComment(pageNo, pageSize, userId) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/backend/list/${pageNo}/${pageSize}/${userId}`,
    method: "GET",
  });
}

export function deleteGoodsComment(id) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/backend/remove/${id}`,
    method: "DELETE",
  });
}